<template>
  <div id="app">
    <router-view />
    <theme-picker />
  </div>
</template>

<script>
import ThemePicker from "@/components/ThemePicker"
import AOS from 'aos'

export default {
  name: "App",
  components: { ThemePicker },
  mounted() {
    // 在应用挂载后初始化AOS
    AOS.init({
      duration: 800,
      easing: 'ease-in-out',
      once: false,
      offset: 100
    });
    
    // 监听路由变化，每次路由切换后重新初始化AOS
    this.$router.afterEach(() => {
      setTimeout(() => {
        AOS.refresh();
      }, 100);
    });
  }
}
</script>
<style scoped>
#app .theme-picker {
  display: none;
}
</style>
